package com.bean;

import java.util.Date;

public class Evaluate {

    Date date=new Date();
    private Integer id;
    private String content;//
    private Date createtime=date;//
    private Integer orderitemid;
    private String userid;
    private Integer flowerid;
    private String enterpriseid;//
    private Flower flower;

    public Evaluate() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getOrderitemid() {
        return orderitemid;
    }

    public void setOrderitemid(Integer orderitemid) {
        this.orderitemid = orderitemid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Integer getFlowerid() {
        return flowerid;
    }

    public void setFlowerid(Integer flowerid) {
        this.flowerid = flowerid;
    }

    public String getEnterpriseid() {
        return enterpriseid;
    }

    public void setEnterpriseid(String enterpriseid) {
        this.enterpriseid = enterpriseid;
    }

    public Flower getFlower() {
        return flower;
    }

    public void setFlower(Flower flower) {
        this.flower = flower;
    }

    public Evaluate(Integer id, String content, Date createtime, Integer orderitemid, String userid, Integer flowerid, String enterpriseid) {
        this.id = id;
        this.content = content;
        if(createtime!=null&& !"".equals(createtime)){
            this.createtime = createtime;
        }
        this.orderitemid = orderitemid;
        this.userid = userid;
        this.flowerid = flowerid;
        this.enterpriseid = enterpriseid;
    }

    public Evaluate(Date date, Integer id, String content, Date createtime, Integer orderitemid, String userid, Integer flowerid, String enterpriseid) {
        this.date = date;
        this.id = id;
        this.content = content;
        if(createtime!=null&& !"".equals(createtime)){
            this.createtime = createtime;
        }
        this.orderitemid = orderitemid;
        this.userid = userid;
        this.flowerid = flowerid;
        this.enterpriseid = enterpriseid;
    }

    @Override
    public String toString() {
        return "Evaluate{" +
                "date=" + date +
                ", id=" + id +
                ", content='" + content + '\'' +
                ", createtime=" + createtime +
                ", orderitemid=" + orderitemid +
                ", userid='" + userid + '\'' +
                ", flowerid=" + flowerid +
                ", enterpriseid='" + enterpriseid + '\'' +
                ", flower=" + flower +
                '}';
    }
}
